package cn.example.easy_excel_demo.module.dao;

import cn.example.easy_excel_demo.module.domain.User;
import cn.example.easy_excel_demo.module.domain.UserExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    User selectName(String name);

    User selectUser(@Param("username")String username,@Param("password") String password);
}